<!DOCTYPE html>
<html>
<head>
    <title>E8NET</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <include file="./App/Admin/View/Include/css.html"/>
    <!-- this page specific styles -->
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/compiled/gallery.css" type="text/css" media="screen" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>

<include file="./App/Admin/View/Include/navbar.html" />
<include file="./App/Admin/View/Include/menu.html" />

<!-- main container -->
<div class="content">

    <div class="container-fluid">
        <div id="pad-wrapper" class="gallery">
            <!-- blank state -->
            <div class="no-gallery">

                <div class="center">
                    <img src="{$student.photo}" />
                    <p style="margin-top:15px;">当前头像状态：
                        <span id="s" class="label label-info">
                            {$student.photo_status_detail}
                        </span>
                    </p>
                    <div class="btn-group large">
                        <button class="glow left" onclick="handler('{$student.id}',3)" >审核通过</button>
                        <button class="glow middle" onclick="handler('{$student.id}',2)">审核不通过</button>
                        <button class="glow right" onclick="history.back();" >返回</button>
                    </div>
                </div>
            </div>
            <!-- end blank state -->
        </div>
    </div>
</div>
<!-- end main container -->

<include file="./App/Admin/View/Include/js.html" />
<script>

        /**
         * 处理学生头像信息
         * @param _id
         * @param _status
         */
        function handler (_id,_status) {
            $.post('{:U("Class2/sphoto")}',{id:_id,status:_status},function(result){
                var obj = eval('(' + result + ')');
                alert(obj.msg);
                location.reload();
            })
        }
</script>

</body>
</html>